﻿using ImageEffects;
using UnityEditor;
using UnityEngine;
using WorldMapBase.WorldScene;

[CustomEditor(typeof(GradientManager))]
public class GradientMangerEditor : Editor
{
    private GradientManager _target;
    
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        _target = target as GradientManager;

        GUILayout.Space(15);
        if (GUILayout.Button("一键寻找",GUILayout.Height(24)))
        {
            _target.FindAllMaterials();
        }
    }
}